package com.rxt.thermopro.viewmodel

import com.app.common.viewmodel.BaseViewModel
import com.app.common.viewmodel.EventLiveData
import com.rxt.thermopro.app.LocalDataDao
import com.rxt.thermopro.bean.ProbeHistoryWrapper

class HistoryChartsViewModel: BaseViewModel() {

    val historyList: EventLiveData<ProbeHistoryWrapper> = EventLiveData()

    fun getHistory(address: String,
                    probeIndex: Int,
                    index: Int) {
        val listData = LocalDataDao.INSTANCE.getProbeHistoryListByIndex(address, probeIndex, index)

        historyList.value = listData
    }

}